/**
  * Copyright 2019 bejson.com 
  */
package com.xingkeduo.dto.transter;

import com.xingkeduo.dto.QueryByUserIdResponseDto;
import com.xingkeduo.utils.PageResponseDTO;
import com.xingkeduo.utils.ResponseUtils;
import lombok.Data;

@Data
public class Comment {
    private int error;
    private Object reason;
    private Content content;

    public void covert(Content content, ResponseUtils<PageResponseDTO<QueryByUserIdResponseDto>> responseDtoResponseUtils) {
        this.content = content;
        this.error=responseDtoResponseUtils.getStatus()==1?0:1;
        this.reason=responseDtoResponseUtils.getMsg();
    }
}